import http from "@/http";
import type {ClassAddParam, JoinClassParam} from "@/api/class/ClassModel";

export const classAddApi = (param: ClassAddParam) => {
    return http.post("/user/class", param)
}

// 获取自己创建的班级列表
export const classListApi = () => {
    return http.get("/user/class/my/list/vo")
}



export const getMyClassListApi = () => {
    return http.get("/user/class/my/list")
}



export const joinClassApi = (param: JoinClassParam) => {
    return http.post("/user/class/join", param)
}
